<?php
namespace app\common\component\user_wallet_log;

class UserWalletLogModel extends \think\Model {
	protected $table = 'league_user_wallet_log';

	public function getTypeAttr($value) {
		$type = [
			1 => '充值',
			2 => '开通会员',
			3 => '提现',
			4 => '本金转入',
			5 => '利息转入',
			6 => '奖励转入'
		];
		return $type[$value];
	}

	public function getIsStateAttr($value) {
		$state = [0 => '否', 1 => '是'];
		return $state[$value];
	}
}
?>